import request from '@/utils/request'

// 查询宿舍床位列表
export function listBed(id) {
  return request({
    url: '/dormitory/dms-dormitory-bed/info/' + id,
    method: 'get'
  })
}

// 查询宿舍床位详细
export function getBed(id) {
  return request({
    url: '/dormitory/dms-dormitory-bed/' + id,
    method: 'get'
  })
}

// 新增宿舍床位
export function addBed(data) {
  return request({
    url: '/dormitory/dms-dormitory-bed/add',
    method: 'post',
    data: data
  })
}

// 修改宿舍床位
export function updateBed(data) {
  return request({
    url: '/dormitory/dms-dormitory-bed/update',
    method: 'post',
    data: data
  })
}

// 删除宿舍床位
export function delBed(data) {
  return request({
    url: '/dormitory/dms-dormitory-bed/delete',
    method: 'post',
    data
  })
}
